from likeshop_api_project.base.mybase import Tools


class login_model(Tools):
    # 定义路径
    path = 'api/account/login'

    # 发送登录请求
    def login_action(self, tel, pwd, client):
        login_data = {
            "account": tel,
            "password": pwd,
            "client": client,
        }
        login = self.meeting.post(url=self.hosturl+self.path, data=login_data)
        return login.json()

# import requests
# meeting = requests.session()
# r = login_model(meeting=meeting)
# res = r.login_action(tel='18922221234', pwd='xixi123.', client=2)
# print(res)
